
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package compiledriver;

import java.util.ArrayList;
import java.util.ListIterator;



/**
 *
 * @author wynd
 * 
 * <p>Extends Definition and Represents a <code>Call</code>
 * to a an operation within a procedure</p>
 */
public final class Call extends Definition {

    private String myName;
    
    /**
     * <p>Creates a new <code>Call</code>
     * 
     * @param intext An iterator that goes through the arguments of
     * operations that will be called
     */
    public Call (ListIterator<String> intext){
        super(intext);
    }
    /**
     * 
     * @return <p>returns the name of the class.</p>
     *         <p> returns the name as a <code>String</code></p>
     */
    public String getName(){
        return myName;
    }
    
    public ArrayList<String> allArguments(){
        ArrayList<String> ret = new ArrayList();
        for(Expression a:argList){
            ret.add(a.toString());
        }
        return ret;
    }
}
